﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;

public class ChimpGUI01 : MonoBehaviour {

    public RectTransform UITrannsform;

    public float duration = 0.5F;
    public float strength = 1;
    public int vibrato = 10;
    public float randomness = 90;
    public bool fadeOut = true;

    public Ease EaseType = Ease.Linear;

    public void DoOpenTween()
    {
        //UITrannsform.DOShakeScale(duration, strength, vibrato, randomness, fadeOut);

        UITrannsform.DOScale(new Vector3(0.0015F, 0.0015F, 0.0015F), duration).SetEase(EaseType).SetRelative();
    }

    public void DoCloseTween()
    {
        //UITrannsform.DOShakeScale(duration, strength, vibrato, randomness, fadeOut);

        UITrannsform.DOScale(new Vector3(-0.0015F, -0.0015F, -0.0015F), duration).SetEase(EaseType).SetRelative();
    }



}
